import http from "../utils/http.js"

export const CrateBlindbox = (params) => {
	return http.post('/CrateBlindbox', params)
}

export const userUpdate = (params) => {
  return http.post('/sysUser/update', params)
}

export const updatePassword = (params) => {
  return http.post('/login/updatePassword', params)
}

export const createBalancePay = (params) => {
  return http.post('/pay/createBalancePay', params)
}

export const balancePay = (orderCode, payPassword) => {
  return http.post(`/pay/balancePay/${orderCode}/${payPassword}`)
}

export const getConfig = () => {
  return http.get('/common/getConfig')
}

export const random = () => {
  return http.get('/realName/ran/random')
}

export const realNameChack = (params) => {
  return http.post('/realName/chack', params)
}
